document.querySelector(".photo-list").onclick = function (event){
    var ele = event.target;
    var eleParent = ele.parentElement;
    if(ele.nodeName=="IMG" && eleParent.nodeName=='LI'){
        var eleallli = eleParent.parentElement.children;
        for (const eleallliElement of eleallli) {
            eleallliElement.classList.remove("li-one");
        }
        eleParent.classList.add("li-one");
        var imgvalue = ele.src;
        console.log(imgvalue);
        var btn = eleParent.parentElement.parentElement.parentElement.previousElementSibling.firstElementChild.firstElementChild.firstElementChild;
        btn.src=imgvalue;
    }
}